<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1,initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="applicable-device" content="mobile">
    <title>{$info.title}</title>
    <script type="text/javascript" src="__PUBLIC__/js/do.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/js/moble.js" charset="utf-8"></script>
    <link rel="stylesheet" href="__STATIC__/allwin/unmarket/style.css" />
</head>
<body ontouchstart>
<div id="content-item">
    <div class="page1"><img src="{$store.img}" /></div>        
    <div class="page2">
        <div class="timelogo"><img src="__STATIC__/allwin/unmarket/overtime.png" /></div>
        <div class="timetitle">使用有效期</div>
        <div class="endtime">{$store.endtime|date="Y-m-d"}</div>
    </div>
    <div class="page3">
        <div class="untitle">活动内容</div>
        <div class="uncontent notes">{$store.content|dehtml|raw}</div>
    </div>
    <div class="page3">
        <div class="untitle">活动须知</div>
        <div class="uncontent notes">{$store.note|dehtml|raw}</div>
    </div>
    <div class="page3">
        <div class="untitle">商家介绍</div>
        <div class="uncontent notes">{$store.about|dehtml|raw}</div>
    </div>
    <div class="page3">
        <div class="untitle">图文展示</div>
        <div class="uncontent notes">{$store.pictext|dehtml|raw}</div>
    </div>
    <div class="page1">{foreach $store.imgs as $img}<img src="{$img}">{/foreach}</div>    
    <div class="weui-footer">
        <p class="weui-footer__links">
            <a href="javascript:void(0);" class="weui-footer__link">{$web.name} 技术支持</a>
        </p>
        <p class="weui-footer__text">Copyright © <?php echo date('Y'); ?> {$web.icp}</p>
    </div>
</div>
<!-- 分享 -->
<div id="item-btm" style="display:none"></div>
<!-- 购物栏 -->
<script id="btm_tpl" type="text/html">
    <div class="btn btn-gray"><a href="{:urls('allwin/unmarket/index',$member_miniapp_id,['id' => $store.union_id])}"><span>返回活动</span></a></div>
    <div class="btn"><a href="tel::{$store.telphone}"><span>联系商家</span></a></div>
</script>
<script type="text/javascript">
Do('weui','fastclick','jweixin','slide','tpl',function(){
    $(function(){
        FastClick.attach(document.body);
    });
    wx.config({$weconfig|raw});
    wx.ready(function (){
        wx.onMenuShareTimeline({title:'{$info.title}',link:'{$share_url|raw}',imgUrl: '{$info.share_img}'});
        wx.onMenuShareAppMessage({title:'{$info.title}',desc:'{$info.share_text}',link:'{$share_url|raw}',imgUrl:'{$info.share_img}'});
    })
    $("#item-btm").show();
    $("#item-btm").html(template("btm_tpl"))
});
</script>
</body>
</html>